package QuickList;

import ZipList.ZipListEntry;

import java.nio.charset.StandardCharsets;

public class Main {
    public static void main(String[] args) {
        QuickList quickList = new QuickList(2);
        quickList.insert("Hello".getBytes());
        quickList.insert("World".getBytes());
        quickList.insert("QuickList".getBytes());
        ZipListEntry[] allData = quickList.getAllData();
        for (ZipListEntry data : allData) {
            System.out.println("Data: " + new String(data.getData(), StandardCharsets.UTF_8));
        }

        ZipListEntry[] allDataReverse = quickList.getAllDataReverse();
        for (ZipListEntry data : allDataReverse) {
            System.out.println("Data: " + new String(data.getData(), StandardCharsets.UTF_8));
        }
    }
}
